import { defineAmisPlugin, getBaseFormItem, getInputTpl } from '../../base/util';
import StaticDicHelp from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
  return {
    component: StaticDicHelp,
    options: getBaseFormItem({
      type: 'static-dic-help',
      order: -6994,
      name: '静态字典帮助',
      icon: 'DatabaseOutlined',
      valueLabel: true,
      xtype:'StaticDicHelp',
      tpls: [
        getInputTpl('typeCode', { label: '字典类型' }),
        getInputTpl('title', { label: '字典标题' }),
        getInputTpl('treePid', { label: '父级编码' }),
        getInputTpl('level', { label: '字典层级', type: 'number' }),
        getInputTpl('multiple', { type: "switch", label: "多选" }),
        getInputTpl('placeholder', { label: '提示文本' }),
      ]
    })
  };
});
